#if !defined(AFX_CAMSELECT_H__01706C02_94D8_11D6_82D2_0800460222F0__INCLUDED_)
#define AFX_CAMSELECT_H__01706C02_94D8_11D6_82D2_0800460222F0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CamSelect.h : header file
//

#include "../RMSLib/clientinterface.h"

/////////////////////////////////////////////////////////////////////////////
// CCamSelect dialog

class CCamSelect : public CDialog,
				   public ClientAccess
{
// Construction
public:
	CCamSelect(ClientInterface* pClient, CWnd* pParent = NULL);   // standard constructor
	CString	  InitialCam;
	char	  Site[1024],Building[1024],Room[1024],Camera[1024];
	void      SetInitial(CString str);
	void	  ReadAddressBook();
	CString	  GetSelected();

	void SetLiveCamName(CString name);
	void SetStoredCamName(CString name);
	BOOL GetRing();

// Dialog Data
	//{{AFX_DATA(CCamSelect)
	enum { IDD = IDD_CamSelect };
	CListBox	m_List;
	CString	m_CurAddr;
	BOOL	m_Ring;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCamSelect)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CCamSelect)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnDblclkList1();
	afx_msg void OnSelCur();
	afx_msg void OnEnRing();
	afx_msg void OnOrganize();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	CString m_liveCamName;
	CString m_storedCamName;

	FILE* getLiveCamFile(LPCTSTR access);
	FILE* getStoredCamFile(LPCTSTR access);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CAMSELECT_H__01706C02_94D8_11D6_82D2_0800460222F0__INCLUDED_)
